<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 引入 ElementUI 样式 -->
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css" />
    <script src="../js/vue.js" defer></script>
    <!-- 引入 ElementUI 组件库 -->
    <script src="../js/index.js" defer></script>
  </head>
  <body>
    <div id="app">
      <el-menu>
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span slot="title">导航一</span>
          </template>
          <el-menu-item>选项1</el-menu-item>
          <el-menu-item>选项2</el-menu-item>
          <el-menu-item>选项3</el-menu-item>
        </el-submenu>

        <el-submenu index="2">
          <template slot="title">
            <i class="el-icon-menu"></i>
            <span slot="title">导航二</span>
          </template>
          <el-menu-item>选项1</el-menu-item>
          <el-menu-item>选项2</el-menu-item>
          <el-menu-item>选项3</el-menu-item>
        </el-submenu>
      </el-menu>
    </div>
    <!-- 初始化 Vue 实例 -->
    <script>
      document.addEventListener("DOMContentLoaded", function () {
        new Vue({
          el: "#app",
        });
      });
    </script>
  </body>
</html>
